home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 332_01 / makefile < prev    next >
Makefile  |  1990-04-02  |  2KB  |  88 lines

  1. #
  2. #  Makefile for CUG101 
  3. #
  4. #  Should be relatively easy to adapt to other environments
  5. #
  6.  
  7. CC    = pc        # MIX Power C
  8. CFLAGS    = /ms        # Small memory model
  9. LD    = pcl
  10.  
  11. O    = .mix        # Object file suffix - .o on Unix
  12. X    = .exe        # Executable file suffix - empty on Unix
  13. DUMMY    = Makefile    # Required by some stupid make programs
  14. I    = -        # Ignore compile errors
  15.  
  16. CURSES    = scurses    # small memory model library
  17. CURLIB    = \lib\scurses.mix    # Path for dependencies
  18.  
  19. all:    bugs$X euclid$X jotto$X polish$X pressup$X stone$X ttt$X yahtzee$X
  20.  
  21. clean:    $(DUMMY)
  22.     del *$O
  23.     del *$X
  24.  
  25. disk:    $(DUMMY)
  26.     copy bugs.c b:
  27.     copy euclid.c b:
  28.     copy jotto.c b:
  29.     copy polish.c b:
  30.     copy pressup.c b:
  31.     copy stone.c b:
  32.     copy ttt.c b:
  33.     copy yahtzee.c b:
  34.     copy getopt.c b:
  35.     copy makefile b:
  36.  
  37. bugs$X:        bugs$O getopt$O $(CURLIB) 
  38.         $(LD) bugs,getopt;$(CURSES)
  39.  
  40. bugs$O:        bugs.c
  41.         $I$(CC) $(CFLAGS) bugs.c
  42.  
  43. euclid$X:    euclid$O
  44.         $(LD) euclid$O
  45.  
  46. euclid$O:    euclid.c
  47.         $I$(CC) $(CFLAGS) euclid.c
  48.  
  49. getopt$O:    getopt.c
  50.         $I$(CC) $(CFLAGS) getopt.c
  51.  
  52. jotto$X:    jotto$O $(CURLIB)
  53.         $(LD) jotto;$(CURSES)
  54.  
  55. jotto$O:    jotto.c
  56.         $I$(CC) $(CFLAGS) jotto.c        
  57.  
  58. polish$X:    polish$O
  59.         $(LD) polish$O
  60.  
  61. polish$O:    polish.c
  62.         $I$(CC) $(CFLAGS) polish.c
  63.  
  64. pressup$X:    pressup$O getopt$O $(CURLIB)
  65.         $(LD) pressup,getopt;$(CURSES)
  66.  
  67. pressup$O:    pressup.c
  68.         $I$(CC) $(CFLAGS) pressup.c
  69.  
  70. stone$X:    stone$O getopt$O $(CURLIB)
  71.         $(LD) stone,getopt;$(CURSES)
  72.  
  73. stone$O:    stone.c
  74.         $I$(CC) $(CFLAGS) stone.c
  75.  
  76. ttt$X:        ttt$O
  77.         $(LD) ttt$O
  78.  
  79. ttt$O:        ttt.c
  80.         $I$(CC) $(CFLAGS) ttt.c
  81.  
  82. yahtzee$X:    yahtzee$O $(CURLIB)
  83.         $(LD) yahtzee;$(CURSES)
  84.  
  85. yahtzee$O:    yahtzee.c
  86.         $I$(CC) $(CFLAGS) yahtzee.c
  87.  
  88.